﻿// ==============================================================================
// Copyright (c) 2012 Bndy.Net, All rights reserved.
// Created by Bndy on 3/30/2012 7:02:32 PM
//
//                    * * * * * * * * * * * * * 
//                    * MAIL- bndy5337@163.com *       http://www.bndy.net
//                    * Q Q - 81795705 =========================================>
//                    * MSN - bndy5337@msn.com *
//                    * * * * * * * * * * * * * 
//
// ------------------------------------------------------------------------------
// 
// ==============================================================================

using System;
using System.Data;

namespace Net.Bndy.Data
{
    public interface IDbFactory : IDisposable
    {
        string ConnectionString { get; set; }

        int ExecuteCommand(string cmdText);
        int ExecuteCount(string tableName, string condition);
        DataTable ExecuteDataTable(string queryString);
        IDataReader ExecuteReader(string queryString);
        object ExecuteScalar(string queryString);
    }
}
